Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c#: Remove Copy of data during import call for base types #1122

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jsturtevant
Copy link
Collaborator

When calling an import we don't need to copy data to a new structure for canonical types. This avoid the extra copy of data in this scenario.

This isin prep for some more changes with #1080

…for cannoncal types. This avoid the extra copy of data in this scenario

Signed-off-by: James Sturtevant <[email protected]>
@@ -1063,7 +1064,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {

match direction {
Direction::Import => {
let import_name = self.interface_gen.type_name_with_qualifier(&Type::Id(id), true);
let import_name = self.interface_gen.type_name_with_qualifier(&Type::Id(id), true);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some how these two lines had tabs, while rest of the file was spaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant